<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
	 <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>何人堂网站购物车</title>
        <!--****js或jq的设置**-->
        <script type="text/javascript" src="<%=request.getContextPath()%>/HRTWEB/js/jquery-1.9.1.js"></script>
        <script src="<%=request.getContextPath()%>/HRTWEB/js/bootstrap.min.js"></script>
		<script src="<%=request.getContextPath()%>/HRTWEB/js/jqPaginator.js"></script>
        <%@include file="../publicJSCSS.jsp"%>
        
        <!--购物车-->
        <link rel="stylesheet" href="<%=request.getContextPath()%>/HRTWEB/css/shoppingCar.css"/>
<%--       <link href="<%=request.getContextPath()%>/HRTWEB/css/bootstrap.min.css" rel="stylesheet" />  --%>
    	<script type="text/javascript" src="<%=request.getContextPath()%>/HRTWEB/js/shoppingCar.js"></script>
        
   </head>

<body>
	<!--固定广告-->
    <%@include file="../kefu.jsp"%>
    
    <!--首页开始-->
	<div>
        <%@include file="../head.jsp"%><br/>
        <!----------------------********头部结束********---------------------------->
        
        <!---***中部***-->
      	<form action="<%=request.getContextPath()%>/web/orderInfor/save.do" name="webOrderInfo" method="post">
        <div class="catbox">
          <table id="cartTable">
            <thead>
              <tr>
                <th><label>
                    <input class="check-all check" type="checkbox"/>&nbsp;&nbsp;全选</label></th>
                <th>商品</th>
                <th>单价</th>
                <th>数量</th>
                <th>小计</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody>
            	<c:forEach var="car" items="${carList}">
				<tr id="${car.id}">
	                <td class="checkbox"><input class="check-one check" type="checkbox"/></td>
	                <td class="goods"><img src="<%=request.getContextPath()%>/HRTWEB/images/car/1.jpg" alt=""/><span>${car.giDetailName}<input type="hidden" name="" value="${car.giDetailName}"/></span></td>
	                <td class="price">${car.salePrice}</td>
	                <td class="count"><span class="reduce"></span>
	                  <input class="count-input" type="text" value="${car.total}"/>
	                  <span class="add">+</span></td>
	                <td class="subtotal">${car.summery}</td>
	                <td class="operation"><span class="delete"  title="${car.id}">删除</span></td>
                </tr>						
											
				</c:forEach>
            </tbody>
          </table>
          <div class="foot" id="foot">
            <label class="fl select-all"><input type="checkbox" class="check-all check"/>&nbsp;&nbsp;全选</label>
            <a class="fl delete" id="deleteAll" href="javascript:;">删除</a>
            <div class="fr closing" onclick="getTotal();"><button type="submit">结 算</button></div>
            <input type="hidden" id="cartTotalPrice" />
            <div class="fr total">合计：￥<span id="priceTotal">0.00</span></div>
            <div class="fr selected" id="selected">已选商品<span id="selectedTotal">0</span>件<span class="arrow up">︽</span><span class="arrow down">︾</span></div>
            <div class="selected-view">
              <div id="selectedViewList" class="clearfix">
                <div><img src="images/1.jpg"><span>取消选择</span></div>
              </div>
              <span class="arrow">◆<span>◆</span></span> </div>
          </div>
        </div>    
       </form>
        <div style="text-align: center;">
		<ul class="pagination" id="pagination2"></ul>
		</div>
	<div style="text-align: center;">
		<div id="pageResult">
			<input id="pageCount" type="hidden" value="${pageResult.pageCount}" />
			<input id="totalCount" type="hidden" value="${pageResult.totalCount}" />
			<input id="pageIndex" type="hidden" value="${pageResult.pageIndex}" />
			<input id="pageSize" type="hidden" value="${pageResult.pageSize}" />
			<input id="memberId" type="hidden" value="${memberId}">
		</div>
		<!-- footer -->


	</div>  
        <!----------------------********中部结束********---------------------------->
        
        
        <!---***尾部***-->
       	<%@include file="../foot.jsp"%>
        <!----------------------********尾部结束********---------------------------->
	</div>
</body>
</html>